# -*- ecoding: utf-8 -*-
# @Author: Wick
# @Time: 2024-02-23 23:35

fruits = {"apple", "banana", "cherry"}

empty_set = set()  # 空集合

fruits.add("orange")
print(fruits)

x = fruits.copy()
print(x)

a = set('abracadabra')
b = set('alacazam')
print(a)
print(b)
print(a-b) #差集
print(a|b) #并集
print(a&b) #交集
print(a^b) #并集减去交集
